{extend name='main'}


{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
    <div class="layui-tab-content think-box-shadow table-block table-block">
        {include file='index/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='text-left nowrap'>日期</th>
                {if $is_store}
                <th class='text-left nowrap'>柜点名称</th>
                <th class='text-left nowrap'>业务员</th>
                <th class='text-left nowrap'>箱格数量</th>
                {/if}
                {if $is_device}
                <th class='text-left nowrap'>柜点名称</th>
                <th class='text-left nowrap'>柜子编号</th>
                <th class='text-left nowrap'>业务员</th>
                {/if}
                {if ($is_store || $is_device) && $type>1}
                <th class='text-left nowrap'>{$type==2?'月':'日'}开箱率</th>
                {/if}
                <th class='text-left nowrap'>订单数量</th>
                <th class='text-left nowrap'>营业额</th>
                <th class='text-left nowrap'>实际收益</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr data-dbclick>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td class="nowrap">{$vo.time|default=''}</td>
                {if $is_store}
                <td class="nowrap">{$vo.store_name|default=''}</td>
                <td class="nowrap">{$vo.store_sales|default=''}</td>
                <td class="nowrap">{$vo.box_num|default=''}</td>
                {/if}
                {if $is_device}
                <td class="nowrap">{$vo.store_name|default=''}</td>
                <td class="nowrap">{$vo.device_name|default=''}</td>
                <td class="nowrap">{$vo.store_sales|default=''}</td>
                {/if}
                {if ($is_store || $is_device) && $type>1}
                <td class='text-left nowrap'>{$vo.kxl|default=0}%</td>
                {/if}
                <td class="nowrap">{$vo.o_num|default=0}</td>
                <td class="nowrap">{$vo.total|default=''}</td>
                <td class="nowrap">{$vo.share_total|default=''}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
